|
|
|
|
|
|
|
Creating More Than One Control |
|
|
|
|
|
|
|
|
If you hold down the Ctrl key while selecting a control from the toolbox, you can draw more than one control without having to reselect the control each time. Press the Esc key or select another control to return to a normal cursor. |
|
|
|
|
|
|
|
|
Moving and Sizing Controls |
|
|
|
|
|
|
|
|
Often you need to move one or more controls from one location to another. You have a couple ways you can accomplish this. First, you need to give the control focus or select multiple controls using the techniques described earlier. Next, you can move these controls with the mouse to the new location. The alternate method is to hold down the Ctrl key while using your arrow keys to move the controls one grid unit in any direction. |
|
|
|
|
|
|
|
|
Controls may be sized by using the Shift key in combination with any of the arrow keys. If you want to increase the height of a control, use the Shift key with the up-arrow key. If you want decrease the width of a control, use the Shift key with the left-arrow key. |
|
|
|
|
|
|
|
|
Lining up controls in a graphical environment can be a difficult process. Having the grid on the form really helps this process, but sometimes you need to line up several controls on a common grid line. Under the Format menu, youll find many menu items that can help you to align and size controls on a particular grid and to a particular control. |
|
|
|
|
|
|
|
|
In general, youll use these formatting menu options on groups of controls. When you highlight a group of controls, one of the controls will be the controller. This control will have its sizing handles in a different color from the rest. When youre applying any of the formatting options, this control will be the one that all the other controls get the sizing/formatting options from. The following headings are the names of the Format menu items. Letís go through each of these. |
|
|
|
|
|
|
|
|
This menu option allows you to align selected objects with each other using the object selected as the alignment reference. Table 18.1 shows you the different alignment commands used. |
|
|
|
|
|